package br.projetopweb.dao.bean;

import java.util.List;

import br.projetopweb.model.bean.Gerente;

public class DAOGerente extends DAOJPA<Gerente>{

	public DAOGerente() {
		super();
	}
	
	@SuppressWarnings("unchecked")
	public List<Gerente> findbyLogin(String login){
		return (List<Gerente>) super.findAllByQuery
		("select grt.login from Gerente grt where grt.login ='"+login+"'");
	}
}